<template>
  <page-form :x-uri="uri" :custom-components="custom">
    <!-- 自定义tab -->
    <template v-slot:page-tabs>
      <tabs :tabs="tabs" />
    </template>
  </page-form>
</template>

<script>
import PageForm from '@public/template/page_form.vue';
import Tabs from './tabs';
import Cover from '@/pages/material/choose/image.vue';
export default {
  components: {
    PageForm,
    Tabs
  },
  data() {
    return {
      uri: '/exam/admin/module/create',
      tabs: [
        {
          title: '新建版块',
          uri: '/exam/module/create',
          meta: {
            permission: 'exam.module.create'
          }
        }
      ],
      custom: {
        cover: Cover
      }
    };
  }
};
</script>
